
package com.rt.schedulenew.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rt.schedulebase.dto.DictTerminalDto;
import com.rt.schedulebase.entity.DictTerminal;
import com.rt.schedulenew.utils.global.JsonResult;

import java.util.List;
public interface IDictTerminalService extends IService<DictTerminal>
{
    DictTerminalDto getSelfDeviceInfo(DictTerminalDto p0);
    
    List<DictTerminalDto> selectList(DictTerminalDto p0);

    List<DictTerminalDto> selectWitConfigList(DictTerminalDto p0);
    
    JsonResult saveSelfDevice(DictTerminalDto p0);
    
    DictTerminal selectTerminalById(DictTerminalDto p0);
    
    JsonResult editSelfDevice(DictTerminalDto p0);
    
    JsonResult deleteSelfDevice(DictTerminalDto p0);

    /***
     * 修改时按照ip和terminalCode判断
     * 新增时只按照ip判断是否存在
     * @param dto terminalCode 、 ipaddress
     * @return false 不重复 true 重复,参数错误 也返回true
     */
    boolean checkTerminalIPIsRepeat(DictTerminalDto dto, boolean isCreate);
}
